import { Component, OnInit } from '@angular/core';
import {MdDialog} from '@angular/material';
import {LoginComponent} from '../login/login.component';
import { Router } from '@angular/router';

@Component({
  selector: 'app-top',
  templateUrl: './app-top.component.html',
  styleUrls: ['./app-top.component.scss'],
  // entryComponents:[LoginComponent],
})
export class AppTopComponent implements OnInit {
  showLoginPanel(){
    let dailogRef = this.dailog.open(LoginComponent);
  }

  constructor(private dailog:MdDialog,private _router:Router) { }

  ngOnInit() {
  }

  register(){
    this._router.navigate(['/pages/register']);
  }

}
